<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTeachingHomeworkTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('teaching_homework', function (Blueprint $table) {
//            $table->comment('教研活动作业表');
            $table->bigIncrements('id');
            $table->bigInteger('activity_id')->comment('activity_info关联id');
            $table->string('link_id', 255)->comment('参考材料待定');
            $table->integer('live_id')->nullable()->default(0)->comment('直播材料关联id');
            $table->text('demand')->nullable()->comment('作业要求');
            $table->integer('scale_id')->nullable()->comment('教师评价关联量表id');
            $table->boolean('is_upload')->comment('上传附件：1-是，2-否');
            $table->boolean('is_describe')->comment('总结性描述：1-是，2-否');
            $table->dateTime('created_at')->nullable()->comment('创建时间');
            $table->dateTime('updated_at')->nullable()->comment('更新时间');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('teaching_homework');
    }
};
